import './assets/main.css'
// 引入重置的样式
import "normalize.css"

import { createApp } from 'vue'
import App from './App.vue'

// 引入路由
import router from './router'

// 引入vuex实例
import store from './store'

// 引入elemnt plus 图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入i18n
import i18n from './i18n'

//引入mock
import './mock'

// 初始化一个实例化app
const app = createApp(App)

// 注册所有的图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }


// 挂载路由
app.use(router)

// 挂载vuex实例
app.use(store)

// 挂载i8n
app.use(i18n)

app.mount('#app')